﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tasks.Common.Enum;

namespace Tasks.Common.Entitys
{
    /// <summary><c>TourGuide</c> Business Object.</summary>
    [Serializable]
    public partial class TourGuide
    {

        #region TourGuideID

        public int TourGuideID { get; set; }
        #endregion

        #region Name
        public string Name { get; set; }

        #endregion

        #region Sex

        private Int32 m_sex;

        /// <summary>Gets or sets Sex</summary>
        public Int32 Sex
        {
            get { return m_sex; }
            set { m_sex = value; }
        }

        #endregion

        #region WorkType

        private String m_workType;

        /// <summary>Gets or sets WorkType</summary>
        public String WorkType
        {
            get { return m_workType; }
            set { m_workType = value; }
        }

        #endregion

        #region IDCard

        private String m_iDCard;

        /// <summary>Gets or sets IDCard</summary>
        public String IDCard
        {
            get { return m_iDCard; }
            set { m_iDCard = value; }
        }

        #endregion

        #region GuideNo

        private String m_guideNo;

        /// <summary>Gets or sets GuideNo</summary>
        public String GuideNo
        {
            get { return m_guideNo; }
            set { m_guideNo = value; }
        }

        #endregion

        #region SNO

        private Int32 m_sNO;

        /// <summary>Gets or sets SNO</summary>
        public Int32 SNO
        {
            get { return m_sNO; }
            set { m_sNO = value; }
        }

        #endregion

        #region ManageCharge

        private Decimal m_manageCharge;

        /// <summary>Gets or sets ManageCharge</summary>
        public Decimal ManageCharge
        {
            get { return m_manageCharge; }
            set { m_manageCharge = value; }
        }

        #endregion

        #region LearderNo

        private String m_learderNo;

        /// <summary>Gets or sets LearderNo</summary>
        public String LearderNo
        {
            get { return m_learderNo; }
            set { m_learderNo = value; }
        }

        #endregion

        #region WorkLevel

        private Int32 m_workLevel;

        /// <summary>Gets or sets WorkLevel</summary>
        public Int32 WorkLevel
        {
            get { return m_workLevel; }
            set { m_workLevel = value; }
        }

        #endregion

        #region WorkTime

        private String m_workTime;

        /// <summary>Gets or sets WorkTime</summary>
        public String WorkTime
        {
            get { return m_workTime; }
            set { m_workTime = value; }
        }

        #endregion

        #region Language

        private String m_language;

        /// <summary>Gets or sets Language</summary>
        public String Language
        {
            get { return m_language; }
            set { m_language = value; }
        }

        #endregion

        #region Remark

        private String m_remark;

        /// <summary>Gets or sets Remark</summary>
        public String Remark
        {
            get { return m_remark; }
            set { m_remark = value; }
        }

        #endregion

        #region State

        private Int32 m_state;

        /// <summary>Gets or sets State</summary>
        public Int32 State
        {
            get { return m_state; }
            set { m_state = value; }
        }

        public int WorkAppraise { get; set; }
        #endregion

        public int OwnerID { get; set; }

        public int UserProfileID { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        public ContactInfo Contact { get; set; }


        private String m_sexStr;
        public string SexStr
        {
            get
            {
                if (this.Sex == 0)
                {
                    return "男";
                }
                else
                {
                    return "女";
                };
            }
            set { m_sexStr = value; }
        }

        private String m_workTimeStr;
        public String WorkTimeStr
        {
            get
            {
                if (Convert.ToInt32(WorkTime) == (int)TourGuideWorkTime.兼职)
                {
                    return "兼职";
                }
                else if (Convert.ToInt32(WorkTime) == (int)TourGuideWorkTime.临时)
                {
                    return "临时";
                }
                else
                {
                    return "专职";
                };
            }
            set { m_workTimeStr = value; }
        }
        private String m_mobile;
        public String Mobile
        {
            get
            {
                return this.Contact.MobileNo;
            }
            set { m_mobile = value; }
        }
    }
}
